﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace NHibernateToSQLMapping.DAL
{
    public interface IMasterDAL
    {
        /// <summary>
        /// 查询数据库名
        /// </summary>
        /// <param name="conStr">连接字符串</param>
        /// <returns></returns>
        List<string> GetDataBaseName(string conStr);

        /// <summary>
        /// 查询所有表名
        /// </summary>
        /// <param name="conStr">连接字符串</param>
        /// <returns></returns>
        List<string> GetTableName(string conStr);

        /// <summary>
        /// 查询所有视图名
        /// </summary>
        /// <param name="conStr">连接字符串</param>
        /// <returns></returns>
        List<string> GetViewName(string conStr);

        /// <summary>
        /// 查询所有字段属性
        /// </summary>
        /// <param name="conStr">连接字符串</param>
        /// <returns></returns>
        DataSet GetTableInfo(string conStr, string tableName);
    }
}
